# Contributor: Emily Ingalls <emily@ingalls.rocks>
# Maintainer: Emily Ingalls <emily@ingalls.rocks>
pkgname=windowmaker
pkgver=0.95.9
pkgrel=0
pkgdesc="Window manager for X emulating the NeXTSTEP user interface"
url="https://windowmaker.org/"
arch="all"
license="GPL-2.0-or-later"
depends_dev="libxmu-dev libxft-dev libxinerama-dev libxrandr-dev
	libjpeg-turbo-dev tiff-dev libwebp-dev"
makedepends="$depends_dev libx11-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://windowmaker.org/pub/source/release/WindowMaker-$pkgver.tar.gz"
builddir="$srcdir/WindowMaker-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static \
		--enable-modelock
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rmdir "$pkgdir"/usr/share/locale/
}

sha512sums="ca3ddc863f5b5b782e90f38c0019fe14d1109d6b11d0a3d5d6c728ddc1817747eea92e22e36933d445e72c70661e039ee56efa70f2654657c8980269fd5b4584  WindowMaker-0.95.9.tar.gz"
